<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="/public/swiper-bundle.min.css">
  <style>
    /* 自定义样式，使轮播图为圆形 */
    .swiper-container {
      width: 100%;
      height: 400px;
      margin: 0 auto;
    }

    .cc {
      width: 450px;
      height: 150px;
      color: #fff;
      font-size: 24px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: transform 0.5s ease-in-out;
      position: relative;

      & img {
        max-width: 100%;
      }
    }

    .cc-active {
      transform: scale(1);
    }

    .cc-next,
    .cc-prev {
      transform: scale(0.8);
    }

    /* 左右按钮样式 */
    .swiper-button-prev,
    .swiper-button-next {
      color: #fff;
      background-color: rgba(0, 0, 0, 0.5);
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
    }

  </style>
</head>

<body>
  <div class="swiper-container swiper-container1">
    <div class="swiper-wrapper">
      <div class="swiper-slide cc">
        <img src="/img/circle/qq2.png" alt="">
      </div>
      <div class="swiper-slide  cc">
        <img src="/img/circle/qq2.png" alt="">
      </div>
      <div class="swiper-slide cc">
        <img src="/img/circle/qq2.png" alt="">
      </div>
    </div>
    <!-- 左右按钮 -->
    <!-- <div class="swiper-button-prev"></div>
    <div class="swiper-button-next"></div> -->
  </div>
  <script src="/public/swiper-bundle.min.js"></script>
  <script>
    // document.addEventListener('DOMContentLoaded', function () {
    var youSwiper = new Swiper('.swiper-container1', {
      autoplay: true,
      slidesPerView: 3,
      centeredSlides: true,
      spaceBetween: 10,
      effect: 'coverflow',
      coverflowEffect: {
        rotate: 0,
        stretch: 0,
        depth: 100,
        modifier: 3,
        slideShadows: false,
      },
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
    });
    // });
  </script>
</body>

</html>
